document.addEventListener("DOMContentLoaded", function () {
  const backBtn = document.getElementById("backBtn");
  const upperCard = document.getElementById("upperCard");
  const lowerCard = document.getElementById("lowerCard");

  if (backBtn) backBtn.addEventListener("click", () => window.history.back());
  if (upperCard)
    upperCard.addEventListener(
      "click",
      () => (window.location.href = "../html/厦门地图1.html")
    );
  if (lowerCard)
    lowerCard.addEventListener(
      "click",
      () => (window.location.href = "../html/敦煌地图1.html")
    );
});
